<?php 
	$removebrack= split(")",$HTTP_SERVER_VARS["HTTP_USER_AGENT"]);
	$Clientinfo = split(";",$removebrack[0]);
	
	$browser=$Clientinfo[1];
	$os=$Clientinfo[2];
	$client = $_SERVER['HTTP_USER_AGENT'];
	$timestamp = date('D M j G:i:s T Y');
	$hostaddress = gethostbyaddr($_SERVER['REMOTE_ADDR']);
	$host = $_SERVER['REMOTE_ADDR'];
	$reference = $_SERVER['HTTP_REFERER'];

	$content = $timestamp." | ".$hostaddress." | ".$host." | ".$reference." | ".$os." | ".$browser." | ".$client."\n";
	$track = new Track();
	$track->addTrack($content);
?>